package com.lijian.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 页面跳转
 * <p>Title: PageController.java</p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2017</p>
 * @author lijian
 * @date 2017年3月12日下午5:13:45
 * @version 1.0
 */
@Controller
public class PageController {

	@RequestMapping("/")
	public String toIndex(){
		return "index";
	}
	@RequestMapping("/{page}")
	public String toPage(@PathVariable String page){
		return page;
	}
}
